var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});


//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});

//搜索
$(".search_ss").attr("title","请输入您要搜索的内容");
$(".search_ss").attr("placeholder","请输入您要搜索的内容");
$("form[name='form_cds'] input[type='submit']").attr("title","搜索");
/**
* 图片处理片段
*/

$('img[src="./201903/W020190314351545546753.jpg"]').attr('title', '畜牧产业精准扶贫').attr('alt', '畜牧产业精准扶贫');
$('img[src="./images/tyright_02_lxy_20180827.png"]').attr('title', '官方微信图标').attr('alt', '官方微信图标');
$('img[src="./cmsywsp/201811/W020181102464941876211.jpg"]').attr('title', '国内首例非洲猪瘟发现者权威“解毒”').attr('alt', '国内首例非洲猪瘟发现者权威“解毒”');
$('img[src="./images/logo_lxy_20180827.png"]').attr('title', '吉林省畜牧业管理局').attr('alt', '吉林省畜牧业管理局');
$('img[src="./ztzl/dwwsjd/images/P020181129517925178746.jpg"]').attr('title', '吉林省动物卫生监督').attr('alt', '吉林省动物卫生监督');
$('img[src="./xdmy/ccpzlaqzsjg/images/P020180907351462196115.jpg"]').attr('title', '畜产品质量安全追溯监管').attr('alt', '畜产品质量安全追溯监管');
$('img[src="./zfxxgkzl/hygk/images/P020180906567877763162.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="../images/zwgk04_lxy_20180827.png"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./zfxxgkzl/shgysyjsly/images/P020180906568055614901.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="../images/list_33_20180827.png"]').attr('title', '装饰图片').attr('alt', '装饰图片');
$('img[src="./zfxxgkzl/tyabl/images/P020180906567940955359.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./images/tyright_02b_lxy_20180827.png"]').attr('title', '官方微信图标').attr('alt', '官方微信图标');
$('img[src="./201911/W020191110361342786030.png"]').attr('title', '学习贯彻党的十九届四中全会精神').attr('alt', '学习贯彻党的十九届四中全会精神');
$('img[src="./zfxxgkzl/ggzypzly/images/P020180906573982427269.png"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./images/nav01_lxy_20180827.png"]').attr('title', '政务公开').attr('alt', '政务公开');
$('img[src="./xdmy/cmxymyqyzt/images/P020180907351630654915.jpg"]').attr('title', '畜牧行业名优企业展台').attr('alt', '畜牧行业名优企业展台');
$('img[src="./zfxxgkzl/ndbg/images/P020180906567747964990.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="../images/list_23_20180827.png"]').attr('title', '装饰图片').attr('alt', '装饰图片');
$('img[src="../images/zwgk01_lxy_20180827.png"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./other/wechat/images/P020181128313454556264.png"]').attr('title', '96605').attr('alt', '96605');
$('img[src="./other/wechat/images/P020181026536385789689.png"]').attr('title', '二维码图片').attr('alt', '二维码图片');
$('img[src="../images/list_21_20180827.png"]').attr('title', '装饰图片').attr('alt', '装饰图片');
$('img[src="../images/list_22_20180827.png"]').attr('title', '装饰图片').attr('alt', '装饰图片');
$('img[src="./201904/W020190404360953452612.png"]').attr('title', '扫黑除恶进行时').attr('alt', '扫黑除恶进行时');
$('img[src="./xwfb/myyw/bmdt/201911/W020191127475069885123.jpg"]').attr('title', '省畜牧业管理局举办全省乡镇畜牧兽医站站长培训班').attr('alt', '省畜牧业管理局举办全省乡镇畜牧兽医站站长培训班');
$('img[src="./images/nav02_lxy_20180827.png"]').attr('title', '新闻发布').attr('alt', '新闻发布');
$('img[src="./201810/W020181108456411777913.jpg"]').attr('title', '吉林省防疫大比武').attr('alt', '吉林省防疫大比武');
$('img[src="../images/list_35_20180827.png"]').attr('title', '装饰图片').attr('alt', '装饰图片');
$('img[src="./images/list_01_20180827.png"]').attr('title', '牧业要闻').attr('alt', '牧业要闻');
$('img[src="./images/tyright_03b_lxy_20180827.png"]').attr('title', '分享').attr('alt', '分享');
$('img[src="../images/list_36_20180827.png"]').attr('title', '装饰图片').attr('alt', '装饰图片');
$('img[src="./xwfb/myyw/bmdt/201912/W020191218601394758922.jpg"]').attr('title', '省畜牧局在榆树组织召开全省畜禽养殖废弃物资源化利用培训暨推进工作会议').attr('alt', '省畜牧局在榆树组织召开全省畜禽养殖废弃物资源化利用培训暨推进工作会议');
$('img[src="./zfxxgkzl/gkzn/images/P020180906567602921897.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./cmsywsp/201909/W020190929559494518585.jpg"]').attr('title', '用平凡致敬不凡').attr('alt', '用平凡致敬不凡');
$('img[src="../images/zwgk02_lxy_20180827.png"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./images/list_11_20180827.png"]').attr('title', '权力清单').attr('alt', '权力清单');
$('img[src="./images/tyright_01b_lxy_20180827.png"]').attr('title', '官方微博图标').attr('alt', '官方微博图标');
$('img[src="./201810/W020181108456267495266.jpg"]').attr('title', '吉林省畜牧兽医摄影大赛').attr('alt', '吉林省畜牧兽医摄影大赛');
$('img[src="./images/bottom02_lxy_20180827.png"]').attr('title', '政府网站找错').attr('alt', '政府网站找错');
$('img[src="./other/wechat/images/P020181128309788808687.jpg"]').attr('title', '二维码图片').attr('alt', '二维码图片');
$('img[src="./201810/W020181108455959086240.jpg"]').attr('title', '中央环保督查进行时').attr('alt', '中央环保督查进行时');
$('img[src="./images/tyright_03_lxy_20180827.png"]').attr('title', '分享').attr('alt', '分享');
$('img[src="./images/nav06_lxy_20180827.png"]').attr('title', '专题专栏').attr('alt', '专题专栏');
$('img[src="./images/bottom03_lxy_20180827.png"]').attr('title', '党政机关').attr('alt', '党政机关');
$('img[src="./201810/W020181108456548721609.jpg"]').attr('title', '吉林省检疫大比武').attr('alt', '吉林省检疫大比武');
$('img[src="./images/img_more_20180827.png"]').attr('title', '更多按钮').attr('alt', '更多按钮');
$('img[src="./xwfb/myyw/bmdt/201910/W020191023333449269180.png"]').attr('title', '省畜牧局党组书记、局长王坤在北京出席畜产品追溯系统研讨会暨追溯管家交易平台上线启动会').attr('alt', '省畜牧局党组书记、局长王坤在北京出席畜产品追溯系统研讨会暨追溯管家交易平台上线启动会');
$('img[src="../images/list_32_20180827.png"]').attr('title', '装饰图片').attr('alt', '装饰图片');
$('img[src="./zfxxgkzl/121937/images/P020180917525517191159.png"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./images/list_10_20180827.png"]').attr('title', '办事指南').attr('alt', '办事指南');
$('img[src="./xdmy/wyqcgzs/images/P020180907351297345951.jpg"]').attr('title', '无疫区成果展示').attr('alt', '无疫区成果展示');
$('img[src="./201909/W020190929549439200452.png"]').attr('title', '全省整治畜产品质量安全问题专项行动').attr('alt', '全省整治畜产品质量安全问题专项行动');
$('img[src="./xwfb/myyw/bmdt/201912/W020191212558558035568.jpg"]').attr('title', '吉林省畜牧业管理局组织召开兽医实验室生物安全管理工作会议').attr('alt', '吉林省畜牧业管理局组织召开兽医实验室生物安全管理工作会议');
$('img[src="./zfxxgkzl/shrdhy/images/P020180906567999223917.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./images/nav04_lxy_20180827.png"]').attr('title', '网上办事').attr('alt', '网上办事');
$('img[src="./jgzn/images/P020180906568813372071.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./images/list_06_20180827.png"]').attr('title', '图片').attr('alt', '图片');
$('img[src="./images/tyright_01_lxy_20180827.png"]').attr('title', '官方微博图标').attr('alt', '官方微博图标');
$('img[src="./201810/W020181108456101335920.jpg"]').attr('title', '吉林省长岭种马场人居环境整治三年行动').attr('alt', '吉林省长岭种马场人居环境整治三年行动');
$('img[src="./images/list_08_20180827.png"]').attr('title', '网上办事').attr('alt', '网上办事');
$('img[src="./images/nav05_lxy_20180827.png"]').attr('title', '互动交流').attr('alt', '互动交流');
$('img[src="./other/wechat/images/P020181128312291098149.png"]').attr('title', '96605').attr('alt', '96605');
$('img[src="./zfxxgkzl/ysqgk/images/P020180906567814403021.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./xwfb/myyw/bmdt/201910/W020191025346071729257.jpg"]').attr('title', '吉林省畜牧业管理局组织召开全省畜牧监测统计人员培训班暨生猪生产推进会').attr('alt', '吉林省畜牧业管理局组织召开全省畜牧监测统计人员培训班暨生猪生产推进会');
$('img[src="./images/nav03_lxy_20180827.png"]').attr('title', '现代牧业').attr('alt', '现代牧业');
$('img[src="../images/zwgk03_lxy_20180827.png"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./images/list_12_20180827.png"]').attr('title', '文件下载').attr('alt', '文件下载');
$('img[src="./201811/W020181106477698079078.jpg"]').attr('title', '党建园地').attr('alt', '党建园地');
$('img[src="./zfxxgkzl/gkyj/images/P020180906567665697326.jpg"]').attr('title', '装饰i图片').attr('alt', '装饰i图片');
$('img[src="./images/list_14_20180827.png"]').attr('title', '交流互动').attr('alt', '交流互动');
$('img[src="./xdmy/cmsysyjs/images/P020180907351572937074.jpg"]').attr('title', '畜牧兽医实用技术').attr('alt', '畜牧兽医实用技术');


//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})
/**
* 共通头部
*/

/**
* 主导航
*/
//轮播,右下角原点--鼠标点击触发

//轮播：只获取轮播中一个a标签。
//以文字a标签为主，图片a标签尽量不要，title不稳定
if(location.href == "http://xmy.jl.gov.cn/" || location.href=="http://xmy.jl.gov.cn/index.html" || location.href=="http://xmy.jl.gov.cn/#"){
//轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $(".nav_box ul li:eq(5) a");

//文字A标签
_EsdDynamicTransformationScript.esdTagANum1 = $(".w1200 .line_01 .line_01left .index_img_bd .tempWrap ul li:eq(1) a");
_EsdDynamicTransformationScript.esdTagANum2 = $(".w1200 .line_01 .line_01left .index_img_bd .tempWrap ul li:eq(2) a");
_EsdDynamicTransformationScript.esdTagANum3 = $(".w1200 .line_01 .line_01left .index_img_bd .tempWrap ul li:eq(3) a");
_EsdDynamicTransformationScript.esdTagANum4 = $(".w1200 .line_01 .line_01left .index_img_bd .tempWrap ul li:eq(4) a");
_EsdDynamicTransformationScript.esdTagANum5 = $(".w1200 .line_01 .line_01left .index_img_bd .tempWrap ul li:eq(5) a");

//原点
_EsdDynamicTransformationScript.esdTagCircleNum1 = $(".w1200 .line_01 .line_01left .index_img .index_img_hd ul li:eq(0)");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $(".w1200 .line_01 .line_01left .index_img .index_img_hd ul li:eq(1)");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $(".w1200 .line_01 .line_01left .index_img .index_img_hd ul li:eq(2)");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $(".w1200 .line_01 .line_01left .index_img .index_img_hd ul li:eq(3)");
_EsdDynamicTransformationScript.esdTagCircleNum5 = $(".w1200 .line_01 .line_01left .index_img .index_img_hd ul li:eq(4)");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".w1200 .line_01 .line_01left .index_img .index_img_more a");


//轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){
//_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagFrontNum1.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_0");
});



//第一块
_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum1.click();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
//_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagANum1.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

//第二块
_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum2.click();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagANum2.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagANum2.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

//第三块
_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum3.click();
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagANum3.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagANum3.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

//第四块
_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagANum4.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagANum4.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});

//第五块
_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum5.click();
$(this).bind("keydown.keydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagANum5.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagANum5.trigger("blur");
_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
$(this).unbind("keydown.keydown_5");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {

$(this).bind("keydown.keydown_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagAfterNum1.trigger("blur");
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}else if (e.keyCode == 9) {
//_EsdDynamicTransformationScript.esdTagAfterNum1.trigger("blur");
}
});

});
_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
$(this).unbind("keydown.keydown_6");
});
}

if(location.href == "http://xmy.jl.gov.cn/" || location.href=="http://xmy.jl.gov.cn/index.html" || location.href=="http://xmy.jl.gov.cn/#"){
//第一部分
// 牧业要闻
$(".line_01right>dl>dt>a:eq(0)").focus(function(){
$(this).mouseover();
$(this).bind("keydown.keydown_yaowen_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".line_01right>dl>dd.line01_dd1 a:first").focus();
return  false;
}
});
});
$(".line_01right>dl>dt>a:eq(0)").blur(function(){
$(this).unbind("keydown.keydown_yaowen_1");
});

// 牧业要闻 第一条
$(".line_01right>dl>dd.line01_dd1 a:first").focus(function(){
$(this).bind("keydown.keydown_yaowen_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".line_01right>dl>dt>a:eq(0)").focus();
return  false;
} else if (e.keyCode == 9) {

}
});
});
$(".line_01right>dl>dd.line01_dd1 a:first").blur(function(){
$(this).unbind("keydown.keydown_yaowen_2");
});

// 牧业要闻 最后一条
$(".line_01right>dl>dd.line01_dd1 a:last").focus(function(){
$(this).bind("keydown.keydown_yaowen_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".line_01right>dl>dt>a:eq(1)").focus();
return  false;
}
});
});
$(".line_01right>dl>dd.line01_dd1 a:last").blur(function(){
$(this).unbind("keydown.keydown_yaowen_3");
});

// 全国信息联播
$(".line_01right>dl>dt>a:eq(1)").focus(function(){
$(this).mouseover();
$(this).bind("keydown.keydown_yaowen_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
if($(".line_01right>dl>dt>a:eq(2)").attr("href")==undefined){
$(".line_01right>dl>dt>a:eq(2)").attr("href","javascript:void(0);").focus().mouseover();
}else{
$(".line_01right>dl>dt>a:eq(2)").focus().mouseover();
}
return  false;
}
});
});
$(".line_01right>dl>dt>a:eq(0)").blur(function(){
$(this).unbind("keydown.keydown_yaowen_4");
});

//重要信息转载 //attr("href","javascript:void(0);")
$(".line_01right>dl>dt>a:eq(2)").focus(function(){
$(this).mouseover();
$(this).bind("keydown.keydown_yaowen_5", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".line_01right>dl>dd>p>a:first").focus();
return  false;
}
});
});
$(".line_01right>dl>dt>a:eq(2)").blur(function(){
$(this).unbind("keydown.keydown_yaowen_5");
});

//=================================================	国务院iframe 开始=================================================
//将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
if(iframeObj != undefined){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
}
};

//声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[2];   // 需要修改 这里的iframe获取

//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".line_01right>dl>dd>p>a:first");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".line_01right>dl>dd>p>a:last");  // 需要修改 这里的tab获取

// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&&_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(document).unbind("keydown.iframeKeydown_1");
});

//第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(document).trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

//第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(document).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});


//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(document).unbind("keydown.iframeKeydown_2");
});
}

}, 500);

}

//=================================================	国务院iframe 结束=================================================


//第二部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num6 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(0) ul li").length-1;
_EsdDynamicTransformationScript.num7 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(1) ul li").length-1;
_EsdDynamicTransformationScript.num8 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(2) ul li").length-1;
_EsdDynamicTransformationScript.num9 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(3) ul li").length-1;
_EsdDynamicTransformationScript.num10= $(".line_03 .line03_m .xwlist .xwlist_02:eq(4) ul li").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd3TagNum1 = $(".line_03 .line03_m .xwlist dt:eq(0) b:eq(0) a");
_EsdDynamicTransformationScript.esd3TagNum2 = $(".line_03 .line03_m .xwlist dt:eq(0) b:eq(1) a");
_EsdDynamicTransformationScript.esd3TagNum3 = $(".line_03 .line03_m .xwlist dt:eq(0) b:eq(2) a");
_EsdDynamicTransformationScript.esd3TagNum4 = $(".line_03 .line03_m .xwlist dt:eq(0) b:eq(3) a");
_EsdDynamicTransformationScript.esd3TagNum5 = $(".line_03 .line03_m .xwlist dt:eq(0) b:eq(4) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(0) ul li:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(1) ul li:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum3Content1 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(2) ul li:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum4Content1 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(3) ul li:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum5Content1 = $(".line_03 .line03_m .xwlist .xwlist_02:eq(4) ul li:eq(0) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".line_03 .line03_m .xwlist .xwlist_02:eq(0) ul li:eq("+_EsdDynamicTransformationScript.num6+") a:eq(1)");
_EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".line_03 .line03_m .xwlist .xwlist_02:eq(1) ul li:eq("+_EsdDynamicTransformationScript.num7+") a:eq(1)");
_EsdDynamicTransformationScript.esd3TagNum3ContentN = $(".line_03 .line03_m .xwlist .xwlist_02:eq(2) ul li:eq("+_EsdDynamicTransformationScript.num8+") a:eq(1)");
_EsdDynamicTransformationScript.esd3TagNum4ContentN = $(".line_03 .line03_m .xwlist .xwlist_02:eq(3) ul li:eq("+_EsdDynamicTransformationScript.num9+") a:eq(1)");
_EsdDynamicTransformationScript.esd3TagNum5ContentN = $(".line_03 .line03_m .xwlist .xwlist_02:eq(4) ul li:eq("+_EsdDynamicTransformationScript.num10+") a:eq(1)");

//第一块
_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {

e = $(this).mouseover();
$(document).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
$(document).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
$(document).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
$(document).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
$(document).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
$(document).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
$(document).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
$(document).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
$(document).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
$(document).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
$(document).unbind("keydown.keydown_3");
});

_EsdDynamicTransformationScript.esd3TagNum3Content1.focus(function () {
$(document).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd3TagNum3Content1.blur(function () {
$(document).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd3TagNum3ContentN.focus(function () {
$(document).bind("keydown.keydown_e3", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum3ContentN.blur(function () {
$(document).unbind("keydown.keydown_e3");
});

//第四块
_EsdDynamicTransformationScript.esd3TagNum4.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum3.mouseover();
_EsdDynamicTransformationScript.esd3TagNum3ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum4Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum4.blur(function () {
$(document).unbind("keydown.keydown_4");
});

_EsdDynamicTransformationScript.esd3TagNum4Content1.focus(function () {
$(document).bind("keydown.keydown_s4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum4.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd3TagNum4Content1.blur(function () {
$(document).unbind("keydown.keydown_s4");
});

_EsdDynamicTransformationScript.esd3TagNum4ContentN.focus(function () {
$(document).bind("keydown.keydown_e4", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum4ContentN.blur(function () {
$(document).unbind("keydown.keydown_e4");
});

//第五块
_EsdDynamicTransformationScript.esd3TagNum5.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum4.mouseover();
_EsdDynamicTransformationScript.esd3TagNum4ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum5Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum5.blur(function () {
$(document).unbind("keydown.keydown_5");
});


//第三部分
//二层

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num11 = $(".line_03 .line03_r dl:eq(0) .line03_01 a").length-1;
_EsdDynamicTransformationScript.num12 = $(".line_03 .line03_r dl:eq(0) .line03_03 a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esdTagNum1 = $(".line_03 .line03_r dl:eq(0) dt:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esdTagNum2 = $(".line_03 .line03_r dl:eq(0) dt:eq(0) a:eq(1)");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esdTagNum1Content1 = $(".line_03 .line03_r dl:eq(0) .line03_01 a:eq(0)");
_EsdDynamicTransformationScript.esdTagNum2Content1 = $(".line_03 .line03_r dl:eq(0) .line03_03 a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esdTagNum1ContentN = $(".line_03 .line03_r dl:eq(0) .line03_01 a:eq("+_EsdDynamicTransformationScript.num11+")");
_EsdDynamicTransformationScript.esdTagNum2ContentN = $(".line_03 .line03_r dl:eq(0) .line03_03 a:eq("+_EsdDynamicTransformationScript.num12+")");

//第一块
_EsdDynamicTransformationScript.esdTagNum1.focus(function (e) {

e = $(this).mouseover();
$(document).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagNum1.blur(function () {

$(document).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esdTagNum1Content1.focus(function () {
$(document).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagNum1Content1.blur(function () {
$(document).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esdTagNum1ContentN.focus(function () {
$(document).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagNum1ContentN.blur(function () {
$(document).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esdTagNum2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagNum1.mouseover();
_EsdDynamicTransformationScript.esdTagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagNum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

}

/**
* 二级页
*/

// -------------------------------二级页------------------------------------
if(location.href == "http://xmy.jl.gov.cn/zwgk/"){  //政务公开
// 政策文件
$(".zwgk03_left .tybt a:eq(0)").focus(function(){
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".zwgklist:eq(1) ul.list_time a:first").focus();
return false;
}
});
});
$(".zwgk03_left .tybt a:eq(0)").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(1) ul.list_time a:first").focus(function(){
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".zwgk03_left .tybt a:eq(0)").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".zwgklist:eq(1) ul.list_time a:first").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(1) ul.list_time a:last").focus(function(){
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".zwgk03_left .tybt a:eq(1)").focus();
return false;
}
});
});
$(".zwgklist:eq(1) ul.list_time a:last").blur(function(){
$(this).unbind("keydown");
});

$(".zwgk03_left .tybt a:eq(1)").focus(function(){
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".zwgk03_left .tybt a:eq(0)").mouseover();
$(".zwgklist:eq(1) ul.list_time a:last").focus();
return false;
} else if (e.keyCode == 9) {
$(".zwgklist:eq(2) ul.list_time a:first").focus();
return false;
}
});
});
$(".zwgk03_left .tybt a:eq(1)").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(2) ul.list_time a:first").focus(function(){
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".zwgk03_left .tybt a:eq(1)").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".zwgklist:eq(2) ul.list_time a:first").blur(function(){
$(this).unbind("keydown");
});

$(".zwgk03_right a.more").focus(function(){
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".zwgk03_left .tybt a:eq(1)").mouseover();
$(".zwgklist:eq(2) ul.list_time a:last").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".zwgk03_right a.more").blur(function(){
$(this).unbind("keydown");
});

//  财务公开选项卡开始
$(".zwgk03_right a:last").focus(function(){
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".bt_03 b:eq(0)").mouseover();
$(".zwgklist:eq(3) ul.list_time a:first").focus();
return false;
}
});
});
$(".zwgk03_right a:last").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(3) ul.list_time a:first").focus(function(){ //财务公开第一条
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".zwgk03_right a:last").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".zwgklist:eq(3) ul.list_time a:first").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(3) ul.list_time a:last").focus(function(){ //财务公开最后一条
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".bt_03 p a:eq(0)").focus();
return false;
}
});
});
$(".zwgklist:eq(3) ul.list_time a:last").blur(function(){
$(this).unbind("keydown");
});

$(".bt_03 p a:eq(0)").focus(function(){ //财务公开 更多
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".zwgklist:eq(3) ul.list_time a:last").focus();
return false;
} else if (e.keyCode == 9) {
$(".bt_03 b:eq(1)").mouseover();
$(".zwgklist:eq(4) ul.list_time a:first").focus();
return false;
}
});
});
$(".bt_03 p a:eq(0)").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(4) ul.list_time a:first").focus(function(){ //人事任免 第一条
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".bt_03 b:eq(0)").mouseover();
$(".bt_03 p a:eq(0)").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".zwgklist:eq(4) ul.list_time a:first").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(4) ul.list_time a:last").focus(function(){ //人事任免 最后一条
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".bt_03 p a:eq(1)").focus();
return false;
}
});
});
$(".zwgklist:eq(4) ul.list_time a:last").blur(function(){
$(this).unbind("keydown");
});

$(".bt_03 p a:eq(1)").focus(function(){ //人事任免 更多
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".zwgklist:eq(4) ul.list_time a:last").focus();
return false;
} else if (e.keyCode == 9) {
$(".bt_03 b:eq(2)").mouseover();
$(".zwgklist:eq(5) ul.list_time a:first").focus();
return false;
}
});
});
$(".bt_03 p a:eq(1)").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(5) ul.list_time a:first").focus(function(){ //牧业统计 第一条
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".bt_03 b:eq(1)").mouseover();
$(".bt_03 p a:eq(1)").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".zwgklist:eq(5) ul.list_time a:first").blur(function(){
$(this).unbind("keydown");
});

$(".zwgklist:eq(5) ul.list_time a:last").focus(function(){ //牧业统计 最后一条
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".bt_03 p a:eq(2)").focus();
return false;
}
});
});
$(".zwgklist:eq(5) ul.list_time a:last").blur(function(){
$(this).unbind("keydown");
});

$(".bt_03 p a:eq(2)").focus(function(){ //牧业统计 更多
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".zwgklist:eq(5) ul.list_time a:last").focus();
return false;
} else if (e.keyCode == 9) {
$(".bottom_box a:first").focus();
return false;
}
});
});
$(".bt_03 p a:eq(1)").blur(function(){
$(this).unbind("keydown");
});

$(".bottom_box a:first").focus(function(){ // 尾部第一个链接
$(this).mouseover();
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".bt_03 b:eq(2)").mouseover();
$(".bt_03 p a:eq(2)").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".bottom_box a:first").blur(function(){
$(this).unbind("keydown");
});

}



if(location.href == "http://xmy.jl.gov.cn/xwfb/"){ //新闻发布

//轮播
//轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $(".weizhi a:last");

//文字A标签
_EsdDynamicTransformationScript.esdTagANum1 = $(".xwfb_01 .tempWrap ul li:eq(1) a");
_EsdDynamicTransformationScript.esdTagANum2 = $(".xwfb_01 .tempWrap ul li:eq(2) a");
_EsdDynamicTransformationScript.esdTagANum3 = $(".xwfb_01 .tempWrap ul li:eq(3) a");
_EsdDynamicTransformationScript.esdTagANum4 = $(".xwfb_01 .tempWrap ul li:eq(4) a");
_EsdDynamicTransformationScript.esdTagANum5 = $(".xwfb_01 .tempWrap ul li:eq(5) a");

//原点
_EsdDynamicTransformationScript.esdTagCircleNum1 = $(".xwfb_01 .index_img_hd ul li:eq(0)");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $(".xwfb_01 .index_img_hd ul li:eq(1)");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $(".xwfb_01 .index_img_hd ul li:eq(2)");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $(".xwfb_01 .index_img_hd ul li:eq(3)");
_EsdDynamicTransformationScript.esdTagCircleNum5 = $(".xwfb_01 .index_img_hd ul li:eq(4)");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".xwfb_01 .index_img_more a");

//轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_0");
});

//第一块
_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

//第二块
_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

//第三块
_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

//第四块
_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});

//第五块
_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
$(this).bind("keydown.keydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
$(this).unbind("keydown.keydown_5");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
$(this).bind("keydown.keydown_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
$(this).unbind("keydown.keydown_6");
});




// 行业要闻选项卡
$(".line01_dd1 ul.list_time a:last").focus(function(){
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".xwfb02_left .bt_03 b:eq(0)").mouseover();
$(".xwlist_02:eq(0) ul.list_time a:first").focus();
return false;
}
});
});
$(".line01_dd1 ul.list_time a:last").blur(function(){
$(this).unbind("keydown");
});

$(".xwlist_02:eq(0) ul.list_time a:first").focus(function(){  //行业要闻 第一个
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".line01_dd1 ul.list_time a:last").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".xwlist_02:eq(0) ul.list_time a:first").blur(function(){
$(this).unbind("keydown");
});

$(".xwlist_02:eq(0) ul.list_time a:last").focus(function(){  //行业要闻 最后一个
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".xwfb02_left .bt_03>p>a:eq(0)").focus();
return false;
}
});
});
$(".xwlist_02:eq(0) ul.list_time a:last").blur(function(){
$(this).unbind("keydown");
});

$(".xwfb02_left .bt_03>p>a:eq(0)").focus(function(){  //行业要闻 更多
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".xwlist_02:eq(0) ul.list_time a:last").focus();
return false;
} else if (e.keyCode == 9) {
$(".xwfb02_left .bt_03 b:eq(1)").mouseover();
$(".xwlist_02:eq(1) ul.list_time a:first").focus();
return false;
}
});
});
$(".xwfb02_left .bt_03>p>a:eq(0)").blur(function(){
$(this).unbind("keydown");
});


$(".xwlist_02:eq(1) ul.list_time a:first").focus(function(){  //市县动态 第一个
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".xwfb02_left .bt_03 b:eq(0)").mouseover();
$(".xwfb02_left .bt_03>p>a:eq(0)").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".xwlist_02:eq(1) ul.list_time a:first").blur(function(){
$(this).unbind("keydown");
});

$(".xwlist_02:eq(1) ul.list_time a:last").focus(function(){  //市县动态 最后一个
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".xwfb02_left .bt_03>p>a:eq(1)").focus();
return false;
}
});
});
$(".xwlist_02:eq(1) ul.list_time a:last").blur(function(){
$(this).unbind("keydown");
});

$(".xwfb02_left .bt_03>p>a:eq(1)").focus(function(){  //市县动态 更多
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".xwlist_02:eq(1) ul.list_time a:last").focus();
return false;
} else if (e.keyCode == 9) {
$(".xwfb02_right .tybt a").focus();
return false;
}
});
});
$(".xwfb02_left .bt_03>p>a:eq(1)").blur(function(){
$(this).unbind("keydown");
});


$(".xwfb02_right .tybt a").focus(function(){  //畜牧兽医微视频 更多
$(this).bind("keydown", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".xwfb02_left .bt_03 b:eq(1)").mouseover();
$(".xwfb02_left .bt_03>p>a:eq(1)").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(".xwfb02_right .tybt a").blur(function(){
$(this).unbind("keydown");
});

// 行业要闻选项卡 结束
// 重要信息转载 国务院iframe 开始
//将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
if(iframeObj != undefined){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
}
};

//声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取

//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".line01_dd3 .ddh>dt>a:eq(0)"); // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".line01_dd3 .ddh>dt>a:eq(1)"); // 需要修改 这里的tab获取

// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&&_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
// _EsdDynamicTransformationScript.iframeTab1.trigger("blur");
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

//第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

//第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});


//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});
}

}, 500);

}
// 重要信息转载 国务院iframe 结束
}
/**
* 共通底部处理
*/
//定义跳转 使用jquery选择器语法
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
_EsdDynamicTransformationScript.navBlock.selector.top = ".top";
_EsdDynamicTransformationScript.navBlock.selector.nav = ".nav_box";
_EsdDynamicTransformationScript.navBlock.selector.footer = ".bottom_box dl";
_EsdDynamicTransformationScript.navBlock.selector.main = "div.w1200.nr_box";
_EsdDynamicTransformationScript.navBlock.selector.left = "";
_EsdDynamicTransformationScript.navBlock.selector.right = "";
_EsdDynamicTransformationScript.navBlock.selector.content = ".content_box";

//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
_EsdDynamicTransformationScript.navBlock.activateArray = [
".top", ".logo_box", ".nav_box", ".line_01left", ".line_01right", ".line_02", ".line03_l", ".line03_m", ".line03_r", ".weizhi",
".content_box", ".bottom_box dl" , ".lmbox"
]


if(location.href == "http://xmy.jl.gov.cn/zwgk/"){
_EsdDynamicTransformationScript.navBlock.activateArray.push(".zwgk01_left");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".zwgk01_right");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".zwgk_02");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".zwgk03_left");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".zwgk03_right");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".zwgk_04");
}


if(location.href == "http://xmy.jl.gov.cn/xwfb/"){
_EsdDynamicTransformationScript.navBlock.activateArray.push(".xwfb01_left");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".xwfb01_right");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".xwfb02_left");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".xwfb02_right");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".xwfb_03 .xwfb03_right");
}


if(location.href == "http://xmy.jl.gov.cn/xdmy/"){
_EsdDynamicTransformationScript.navBlock.activateArray.push(".xdmy01 .fl");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".xdmy01 .fr");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".zwgk03_left");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".xdmy03");
}

if(location.href == "http://xmy.jl.gov.cn/wsbs/"){
_EsdDynamicTransformationScript.navBlock.activateArray.push(".ovhd  .fl");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".ovhd  .fr");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".ovhd:eq(1)");
}

if(location.href == "http://xmy.jl.gov.cn/hdjl/"){
_EsdDynamicTransformationScript.navBlock.activateArray.push(".ovhd:eq(0)");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".zxrx_rainbow ");
_EsdDynamicTransformationScript.navBlock.activateArray.push(".ovhd:eq(1)");
}

if(location.href == "http://xmy.jl.gov.cn/ztzl/"){
_EsdDynamicTransformationScript.navBlock.activateArray.push(".list_img li");
}

for(var i=0; i<_EsdDynamicTransformationScript.navBlock.activateArray.length;i++){
$(_EsdDynamicTransformationScript.navBlock.activateArray[i]).addClass("navBlock");
}
/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
